import request from '@/utils/request'
const qs = require("qs");

export function shopItem(param) {
  return request({
    url: '/shop/item',
    method: 'get',
    params:param
  })
}




export function refuse(param) {
  return request({
    url: '/shop/refuse',
    method: 'post',
    params: param
  })
}

export function approve(id) {
  var param = {
    id: id
  }
  return request({
    url: '/shop/approve',
    method: 'post',
    params: param
  })
}
 
export function delObj(id) {
  var param = {
    id: id
  }
  return request({
    url: '/shop/delete',
    method: 'post',
    params: param
  })
}

export function shopList(param) {
  return request({
    url: '/shop/list',
    method: 'get',
    params:param
  })
}
export function shopWaittingList(param) {
  return request({
    url: '/shop/apply',
    method: 'get',
    params:param
  })
}

export function withdrawApplyList(param) {
  return request({
    url: '/shop/withdrawApplyList',
    method: 'get',
    params:param
  })
}

export function refuseWithdraw(applyId){
  var param = {
    applyId: applyId
  }
  return request({
    url: '/shop/refuseWithdraw',
    method: 'post',
    params:param
  })
}






export function approveWithdraw(applyId){
  var param = {
    applyId: applyId
  }
  return request({
    url: '/shop/approveWithdraw',
    method: 'post',
    params:param
  })
}



export function shopSearchForDispatch(param) {
  return request({
    url: '/shop/search',
    method: 'get',
    params:param
  })
}

export function addOrUpdate(data) {
  return request({
    url: '/shop/saveOrUpdate',
    method: 'post',
    data
  })
}